home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
cstdio.arc
/
SRC.ARC
/
CREAT.A
< prev
next >
Wrap
Text File
|
1985-05-17
|
477b
|
28 lines
; creat.a - create a new file.
; (C) Copyright 1984, 1985 Gregory R. Mansfield - All Rights Reserved.
; G. R. Mansfield. 84/06/22.
; Ver 1.0-5517.
include "include/msdos.ah"
dseg
public errno_
cseg
public creat_
; int creat(fd, att)
; int fd;
; int att;
creat_: mov bx,sp
mov cx,[bx+4] ; attributes
mov dx,[bx+2] ; path name pointer
mov ah,FR_CRF ; create a file
int I_FCN
jnb crt1 ; if no error
mov errno_,ax
mov ax,-1
crt1: ret